<template>
    <div class="content">
        <swiper :options="swiperOption">
            <!-- slides -->
            <swiper-slide v-for="item of swiperList" :key="item.id">
                <img :src="item.imgUrl" alt="" class="swiper-img">
            </swiper-slide>
            <!-- Optional controls -->
            <div class="swiper-pagination"  slot="pagination"></div>
        </swiper>
    </div>
</template>

<script>
export default {
  name: 'HomeSwiper',
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true
      },
      swiperList: [{
        id: '001',
        imgUrl: 'http://pic.lvmama.com/uploads/pc/place2/2018-05-22/1a602c42-4559-4ce3-bc28-fff7d0a01735.jpg'
      }, {
        id: '001',
        imgUrl: 'http://pic.lvmama.com/uploads/pc/place2/2018-05-22/1a602c42-4559-4ce3-bc28-fff7d0a01735.jpg'
      }]
    }
  }
}
</script>
<style lang="stylus" scoped>
  .content >>> .swiper-pagination-bullet-active
    background: #fff !important
  .content
    width: 100%
    height: 0
    overflow:hidden
    padding-bottom: 37.25%
    .swiper-img
      width: 100%
</style>
